package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.IdType;
import com.ruoyi.common.core.domain.BaseDomain;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 统一门户部门和子系统角色关联对象 sys_department_role
 *
 * @author sunye
 * @date 2024-10-10
 */
@Data
public class SysDepartmentRole
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value ="id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "部门表(com_department)id")
    @Excel(name = "部门表(com_department)id")
    private Long departmentId;

    @ApiModelProperty(value = "角色(sys_role)id")
    @Excel(name = "角色(sys_role)id")
    private Long roleId;

    @ApiModelProperty(value = "排序")
    @Excel(name = "排序")
    private Long sort;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("departmentId", getDepartmentId())
            .append("roleId", getRoleId())
            .append("sort", getSort())
            .toString();
    }
}
